package com.jun.serviceimpl;

import com.jun.entity.Consume;
import com.jun.mapper.ConsumeMapper;
import com.jun.service.ConsumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ConsumeServiceImpl implements ConsumeService {
    @Autowired
    ConsumeMapper consumeMapper;
    @Override
    public String getOneConsume(String time) {
        return consumeMapper.getOneConsume(time);
    }

    @Override
    public int insertConsume(Consume consume) {
        return consumeMapper.insertConsume(consume);
    }
}
